var express = require("express");

var moviedata = require("./data.json")

var app = express();

app.use(express.static('../'))

app.get("/", function(req, res){
	res.sendfile("../index.html")
})

app.get("/movielist", function(req, res){
	res.send(moviedata);
})


app.listen("8081", function(){
	console.log("8081端口被监听");
})